package com.css.dzj.zfjg.modules.supervisioncompinfo.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;

/**
 * 监管经办（答复）信息表
 */
@Entity
@Table(name = "JG_TSJB_HANDLE_INFO", schema = "DZJZFJG", catalog = "")
public class JgTsjbHandleInfoEntity {
    private String uuId;
    private String registerCode;
    private String progressState;
    private String handleDepartmentName;
    private String handleDepartmentCode;
    private String content;
    private String actionCode;
    private String processCode;
    private String auditAnswer;

    @Id
    @Column(name = "Uu_Id")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getUuId() {
        return uuId;
    }

    public void setUuId(String uuId) {
        this.uuId = uuId;
    }

    @Basic
    @Column(name = "Register_Code")
    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    @Basic
    @Column(name = "Progress_State")
    public String getProgressState() {
        return progressState;
    }

    public void setProgressState(String progressState) {
        this.progressState = progressState;
    }

    @Basic
    @Column(name = "Handle_Department_Name")
    public String getHandleDepartmentName() {
        return handleDepartmentName;
    }

    public void setHandleDepartmentName(String handleDepartmentName) {
        this.handleDepartmentName = handleDepartmentName;
    }

    @Basic
    @Column(name = "Handle_Department_Code")
    public String getHandleDepartmentCode() {
        return handleDepartmentCode;
    }

    public void setHandleDepartmentCode(String handleDepartmentCode) {
        this.handleDepartmentCode = handleDepartmentCode;
    }

    @Basic
    @Column(name = "Content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "Action_Code")
    public String getActionCode() {
        return actionCode;
    }

    public void setActionCode(String actionCode) {
        this.actionCode = actionCode;
    }

    @Basic
    @Column(name = "Process_Code")
    public String getProcessCode() {
        return processCode;
    }

    public void setProcessCode(String processCode) {
        this.processCode = processCode;
    }

    @Basic
    @Column(name = "Audit_Answer")
    public String getAuditAnswer() {
        return auditAnswer;
    }

    public void setAuditAnswer(String auditAnswer) {
        this.auditAnswer = auditAnswer;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgTsjbHandleInfoEntity that = (JgTsjbHandleInfoEntity) o;
        return Objects.equals(uuId, that.uuId) &&
                Objects.equals(registerCode, that.registerCode) &&
                Objects.equals(progressState, that.progressState) &&
                Objects.equals(handleDepartmentName, that.handleDepartmentName) &&
                Objects.equals(handleDepartmentCode, that.handleDepartmentCode) &&
                Objects.equals(content, that.content) &&
                Objects.equals(actionCode, that.actionCode) &&
                Objects.equals(processCode, that.processCode) &&
                Objects.equals(auditAnswer, that.auditAnswer);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuId, registerCode, progressState, handleDepartmentName, handleDepartmentCode, content, actionCode, processCode, auditAnswer);
    }
}
